package com.situ.mvc.service.impl;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.situ.mvc.common.ServerResponse;
import com.situ.mvc.dao.IDepartmentDao;
import com.situ.mvc.dao.IUserDao;
import com.situ.mvc.entity.Department;
import com.situ.mvc.service.IDepartmentService;
import com.situ.mvc.util.MyBatisUtil;

public class DepartmentServiceImpl implements IDepartmentService {
	private IDepartmentDao departmentDao;
	SqlSession sqlSession;
	
	public DepartmentServiceImpl() {
		sqlSession = MyBatisUtil.getSqlSession();
		departmentDao = sqlSession.getMapper(IDepartmentDao.class);
	}

	@Override
	public List<Department> one2manyList() {
		return departmentDao.one2manyList();
	}

}
